<?php
if (!defined('IN_ANWSION'))
{
   die;
}
class main extends AWS_CONTROLLER
{
   public function get_access_rule()
   {
      $rule_action['rule_type'] = 'white';

      if ($this->user_info['permission']['visit_question'] AND $this->user_info['permission']['visit_site'])
      {
         $rule_action['actions'][] = 'index';
      }

      return $rule_action;
   }
   public function index_action()
   {
      $list = $this->model('mbti')->data();
      $sheet = $this->model('mbti')->get_users();
      $user = $this->model('mbti')->get_users_info();
      TPL::assign('mbti', 'hello world!');
      TPL::assign('list', $list);
      TPL::assign('sheet', $sheet);
      TPL::assign('user', $user);
      TPL::output('mbti/index');
   }
}
?>